package util;

import java.util.Comparator;

import data_structs.SequenceWrapper;

public class SequenceComparator implements Comparator<SequenceWrapper> {

	@Override
	public int compare(SequenceWrapper o1, SequenceWrapper o2) {
		int a = o1.getIntSequence() + o1.getID() + o1.getPosition() + o1.getTreeFixer();
		int b = o2.getIntSequence() + o2.getID() + o2.getPosition() + o2.getTreeFixer();
		return a-b;
	}

}